package com.poetry.jianjia;

import ohos.aafwk.ability.AbilityPackage;
import poerty.jianjian.converter.gson.GsonConverterFactory;
import poetry.jianjia.JianJia;

public class BaseApplication extends AbilityPackage {

    private static BaseApplication instance;

    private JianJia mJianJia;

    public static final BaseApplication getInstance() {
        return instance;
    }

    public JianJia getJianJia() {
        return mJianJia;
    }

    @Override
    public void onInitialize() {
        super.onInitialize();
        instance = this;
        mJianJia = new JianJia.Builder()
                .baseUrl("https://www.wanandroid.com")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
}
